import dotenv from 'dotenv';

dotenv.config();

export const weworkConfig = {
  corpId: process.env.WEWORK_CORP_ID,
  agentId: process.env.WEWORK_AGENT_ID,
  secret: process.env.WEWORK_SECRET,
  redirectUri: `${process.env.NODE_ENV === 'production' 
    ? 'https://your-domain.com' 
    : 'http://localhost:8000'}/auth/callback`,
  state: 'wework'
};

export const WEWORK_API = {
  GET_ACCESS_TOKEN: 'https://qyapi.weixin.qq.com/cgi-bin/gettoken',
  GET_USER_INFO: 'https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo',
  GET_USER_DETAIL: 'https://qyapi.weixin.qq.com/cgi-bin/user/get'
}; 